import java.util.Scanner;

public class Test {

    //字符串相加：
    public static String stringAdd(String a,String b){
        StringBuilder stringBuilder = new StringBuilder();
        int lenA = a.length();
        int lenB = b.length();
        int maxLen = Math.max(lenA,lenB);

        StringBuilder stringBuilderA = new StringBuilder(a).reverse();
        StringBuilder stringBuilderB = new StringBuilder(b).reverse();

        boolean isCarry = false;
        for (int i = 0; i < maxLen; i++) {
            char cha = i >= lenA ? '0' : stringBuilderA.charAt(i);
            char chb = i >= lenB ? '0' : stringBuilderB.charAt(i);

            if(cha == '1' && chb == '1'){
                stringBuilder.append(isCarry ? '1' : '0');
                isCarry = true;
            } else if (cha == '0' && chb == '0') {
                stringBuilder.append(isCarry ? '1' : '0');
                isCarry = false;
            }else{
                stringBuilder.append(isCarry ? '0' : '1');
            }
        }
        if(isCarry){
            stringBuilder.append('1');
        }
        return stringBuilder.reverse().toString();
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
            String str1 = scan.next();
            String str2 = scan.next();

            String ret = stringAdd(str1,str2);
            System.out.println(ret);
        }
    }

}
